package org.leon.mvcframework;

import org.leon.mvcframework.pojo.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by leon.L on 2020/2/1.
 * Desc : 拦截器行为定义，实现此接口后，会拦截所有请求
 */
public interface BaseInterceptor {

    boolean beforeHandler(HttpServletRequest request, HttpServletResponse response, Handler handler);

}
